import { ViewType, registerLayout } from '@kunlun/mobile-dependencies';

export const runHomeConfigView = () => {
    registerLayout(
        `
    <view type="TABLE">
      <custom widget="custom-home-config" style="height: 100%" >
        <xslot name="actions" slotSupport="action" />
        <xslot name="fields" slotSupport="field" />
        <element widget="rowActions" slot="rowActions" />
      </custom>
    </view>
    `,
        {
            viewType: ViewType.Table,
            moduleName: 'DemoCore',
            model: 'demo.DemoItem'
            // model: 'demo.courseLesson'
        }
    );
};

runHomeConfigView()